package cn.adkii.basic.test.demo;

import cn.adkii.base.demo.syntax.AbstractStudent;
import cn.adkii.base.demo.syntax.DefaultStudent;
import cn.adkii.base.demo.syntax.Student;
import org.junit.Test;

/**
 * @author malingdi
 * @description 语法相关test
 * @date 2023/11/25 12:16
 */
public class ApiSyntax {


    @Test
    public void testAbstractOrInterface(){
        Student.hello();
        DefaultStudent.show();
        System.out.println(DefaultStudent.STU_NO_PREFIX);
        System.out.println(AbstractStudent.STU_NO_PREFIX);
        DefaultStudent student = new DefaultStudent("111");
        student.report("adkii");
        student.introduce();
        // 调用接口的默认方法
        student.test();

    }
}
